:root {
    --primary-color:#003699;
    --dark-color:#333333;
    --light-color:#f4f4f4;
    --win-color:#dc3545;
    --lose-color:#28a745;
    --modal-duration:1s
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
    text-align: center;
}

.restart-btn {
    display: none;
    background-color: #f4f4f4;
    color: #333;
    padding: 0.4rem 1.3rem;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    border: none;
    margin-bottom: 1rem;
}
.restart-btn:hover {
    background-color: #003699;
    color: #fff;
}
.header {
    text-align: center;
    margin: 1rem 0;
}

.header h1 {
    margin-bottom: 1rem;
}

.score {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-size: 1.2rem;
    color: #fff;
}

.score p:nth-child(1) {
    background-color: var(--primary-color);
}
.score p:nth-child(2) {
    background-color: var(--dark-color);
}

.choices {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}
.choice {
    cursor: pointer;
}
.choice:hover {
    color: #003699;
}

.text-win {
    color: #28a745;
}
.text-lose {
    color: #dc3545;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,.5);
    animation: modalopen .5s;
}

@keyframes modalopen {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    text-align: center;
    margin: 10% auto;
    width: 350px;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, .2),
                0 7px 20px 0 rgba(0, 0, 0, .17);
}

.modal-content h1 {
    margin-bottom: 1rem;
}
.modal-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
}


/* 媒体查询 */
@media(max-width: 700px) {
    .choice {
        font-size: 110px;
    }
}
@media(max-width: 500px) {
    .choice {
        font-size: 80px;
    }
}